package com.fc.mall.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class SmsGroupbuyPromotionExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SmsGroupbuyPromotionExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andNameIsNull() {
            addCriterion("name is null");
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion("name is not null");
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion("name =", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion("name <>", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion("name >", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("name >=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion("name <", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("name <=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion("name like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion("name not like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion("name in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion("name not in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion("name between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("name not between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andSubTitleIsNull() {
            addCriterion("sub_title is null");
            return (Criteria) this;
        }

        public Criteria andSubTitleIsNotNull() {
            addCriterion("sub_title is not null");
            return (Criteria) this;
        }

        public Criteria andSubTitleEqualTo(String value) {
            addCriterion("sub_title =", value, "subTitle");
            return (Criteria) this;
        }

        public Criteria andSubTitleNotEqualTo(String value) {
            addCriterion("sub_title <>", value, "subTitle");
            return (Criteria) this;
        }

        public Criteria andSubTitleGreaterThan(String value) {
            addCriterion("sub_title >", value, "subTitle");
            return (Criteria) this;
        }

        public Criteria andSubTitleGreaterThanOrEqualTo(String value) {
            addCriterion("sub_title >=", value, "subTitle");
            return (Criteria) this;
        }

        public Criteria andSubTitleLessThan(String value) {
            addCriterion("sub_title <", value, "subTitle");
            return (Criteria) this;
        }

        public Criteria andSubTitleLessThanOrEqualTo(String value) {
            addCriterion("sub_title <=", value, "subTitle");
            return (Criteria) this;
        }

        public Criteria andSubTitleLike(String value) {
            addCriterion("sub_title like", value, "subTitle");
            return (Criteria) this;
        }

        public Criteria andSubTitleNotLike(String value) {
            addCriterion("sub_title not like", value, "subTitle");
            return (Criteria) this;
        }

        public Criteria andSubTitleIn(List<String> values) {
            addCriterion("sub_title in", values, "subTitle");
            return (Criteria) this;
        }

        public Criteria andSubTitleNotIn(List<String> values) {
            addCriterion("sub_title not in", values, "subTitle");
            return (Criteria) this;
        }

        public Criteria andSubTitleBetween(String value1, String value2) {
            addCriterion("sub_title between", value1, value2, "subTitle");
            return (Criteria) this;
        }

        public Criteria andSubTitleNotBetween(String value1, String value2) {
            addCriterion("sub_title not between", value1, value2, "subTitle");
            return (Criteria) this;
        }

        public Criteria andStartDateIsNull() {
            addCriterion("start_date is null");
            return (Criteria) this;
        }

        public Criteria andStartDateIsNotNull() {
            addCriterion("start_date is not null");
            return (Criteria) this;
        }

        public Criteria andStartDateEqualTo(Date value) {
            addCriterion("start_date =", value, "startDate");
            return (Criteria) this;
        }

        public Criteria andStartDateNotEqualTo(Date value) {
            addCriterion("start_date <>", value, "startDate");
            return (Criteria) this;
        }

        public Criteria andStartDateGreaterThan(Date value) {
            addCriterion("start_date >", value, "startDate");
            return (Criteria) this;
        }

        public Criteria andStartDateGreaterThanOrEqualTo(Date value) {
            addCriterion("start_date >=", value, "startDate");
            return (Criteria) this;
        }

        public Criteria andStartDateLessThan(Date value) {
            addCriterion("start_date <", value, "startDate");
            return (Criteria) this;
        }

        public Criteria andStartDateLessThanOrEqualTo(Date value) {
            addCriterion("start_date <=", value, "startDate");
            return (Criteria) this;
        }

        public Criteria andStartDateIn(List<Date> values) {
            addCriterion("start_date in", values, "startDate");
            return (Criteria) this;
        }

        public Criteria andStartDateNotIn(List<Date> values) {
            addCriterion("start_date not in", values, "startDate");
            return (Criteria) this;
        }

        public Criteria andStartDateBetween(Date value1, Date value2) {
            addCriterion("start_date between", value1, value2, "startDate");
            return (Criteria) this;
        }

        public Criteria andStartDateNotBetween(Date value1, Date value2) {
            addCriterion("start_date not between", value1, value2, "startDate");
            return (Criteria) this;
        }

        public Criteria andEndDateIsNull() {
            addCriterion("end_date is null");
            return (Criteria) this;
        }

        public Criteria andEndDateIsNotNull() {
            addCriterion("end_date is not null");
            return (Criteria) this;
        }

        public Criteria andEndDateEqualTo(Date value) {
            addCriterion("end_date =", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateNotEqualTo(Date value) {
            addCriterion("end_date <>", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateGreaterThan(Date value) {
            addCriterion("end_date >", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateGreaterThanOrEqualTo(Date value) {
            addCriterion("end_date >=", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateLessThan(Date value) {
            addCriterion("end_date <", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateLessThanOrEqualTo(Date value) {
            addCriterion("end_date <=", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateIn(List<Date> values) {
            addCriterion("end_date in", values, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateNotIn(List<Date> values) {
            addCriterion("end_date not in", values, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateBetween(Date value1, Date value2) {
            addCriterion("end_date between", value1, value2, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateNotBetween(Date value1, Date value2) {
            addCriterion("end_date not between", value1, value2, "endDate");
            return (Criteria) this;
        }

        public Criteria andPosterImgIsNull() {
            addCriterion("poster_img is null");
            return (Criteria) this;
        }

        public Criteria andPosterImgIsNotNull() {
            addCriterion("poster_img is not null");
            return (Criteria) this;
        }

        public Criteria andPosterImgEqualTo(String value) {
            addCriterion("poster_img =", value, "posterImg");
            return (Criteria) this;
        }

        public Criteria andPosterImgNotEqualTo(String value) {
            addCriterion("poster_img <>", value, "posterImg");
            return (Criteria) this;
        }

        public Criteria andPosterImgGreaterThan(String value) {
            addCriterion("poster_img >", value, "posterImg");
            return (Criteria) this;
        }

        public Criteria andPosterImgGreaterThanOrEqualTo(String value) {
            addCriterion("poster_img >=", value, "posterImg");
            return (Criteria) this;
        }

        public Criteria andPosterImgLessThan(String value) {
            addCriterion("poster_img <", value, "posterImg");
            return (Criteria) this;
        }

        public Criteria andPosterImgLessThanOrEqualTo(String value) {
            addCriterion("poster_img <=", value, "posterImg");
            return (Criteria) this;
        }

        public Criteria andPosterImgLike(String value) {
            addCriterion("poster_img like", value, "posterImg");
            return (Criteria) this;
        }

        public Criteria andPosterImgNotLike(String value) {
            addCriterion("poster_img not like", value, "posterImg");
            return (Criteria) this;
        }

        public Criteria andPosterImgIn(List<String> values) {
            addCriterion("poster_img in", values, "posterImg");
            return (Criteria) this;
        }

        public Criteria andPosterImgNotIn(List<String> values) {
            addCriterion("poster_img not in", values, "posterImg");
            return (Criteria) this;
        }

        public Criteria andPosterImgBetween(String value1, String value2) {
            addCriterion("poster_img between", value1, value2, "posterImg");
            return (Criteria) this;
        }

        public Criteria andPosterImgNotBetween(String value1, String value2) {
            addCriterion("poster_img not between", value1, value2, "posterImg");
            return (Criteria) this;
        }

        public Criteria andWarmUpIsNull() {
            addCriterion("warm_up is null");
            return (Criteria) this;
        }

        public Criteria andWarmUpIsNotNull() {
            addCriterion("warm_up is not null");
            return (Criteria) this;
        }

        public Criteria andWarmUpEqualTo(Integer value) {
            addCriterion("warm_up =", value, "warmUp");
            return (Criteria) this;
        }

        public Criteria andWarmUpNotEqualTo(Integer value) {
            addCriterion("warm_up <>", value, "warmUp");
            return (Criteria) this;
        }

        public Criteria andWarmUpGreaterThan(Integer value) {
            addCriterion("warm_up >", value, "warmUp");
            return (Criteria) this;
        }

        public Criteria andWarmUpGreaterThanOrEqualTo(Integer value) {
            addCriterion("warm_up >=", value, "warmUp");
            return (Criteria) this;
        }

        public Criteria andWarmUpLessThan(Integer value) {
            addCriterion("warm_up <", value, "warmUp");
            return (Criteria) this;
        }

        public Criteria andWarmUpLessThanOrEqualTo(Integer value) {
            addCriterion("warm_up <=", value, "warmUp");
            return (Criteria) this;
        }

        public Criteria andWarmUpIn(List<Integer> values) {
            addCriterion("warm_up in", values, "warmUp");
            return (Criteria) this;
        }

        public Criteria andWarmUpNotIn(List<Integer> values) {
            addCriterion("warm_up not in", values, "warmUp");
            return (Criteria) this;
        }

        public Criteria andWarmUpBetween(Integer value1, Integer value2) {
            addCriterion("warm_up between", value1, value2, "warmUp");
            return (Criteria) this;
        }

        public Criteria andWarmUpNotBetween(Integer value1, Integer value2) {
            addCriterion("warm_up not between", value1, value2, "warmUp");
            return (Criteria) this;
        }

        public Criteria andWarmUpHourIsNull() {
            addCriterion("warm_up_hour is null");
            return (Criteria) this;
        }

        public Criteria andWarmUpHourIsNotNull() {
            addCriterion("warm_up_hour is not null");
            return (Criteria) this;
        }

        public Criteria andWarmUpHourEqualTo(Integer value) {
            addCriterion("warm_up_hour =", value, "warmUpHour");
            return (Criteria) this;
        }

        public Criteria andWarmUpHourNotEqualTo(Integer value) {
            addCriterion("warm_up_hour <>", value, "warmUpHour");
            return (Criteria) this;
        }

        public Criteria andWarmUpHourGreaterThan(Integer value) {
            addCriterion("warm_up_hour >", value, "warmUpHour");
            return (Criteria) this;
        }

        public Criteria andWarmUpHourGreaterThanOrEqualTo(Integer value) {
            addCriterion("warm_up_hour >=", value, "warmUpHour");
            return (Criteria) this;
        }

        public Criteria andWarmUpHourLessThan(Integer value) {
            addCriterion("warm_up_hour <", value, "warmUpHour");
            return (Criteria) this;
        }

        public Criteria andWarmUpHourLessThanOrEqualTo(Integer value) {
            addCriterion("warm_up_hour <=", value, "warmUpHour");
            return (Criteria) this;
        }

        public Criteria andWarmUpHourIn(List<Integer> values) {
            addCriterion("warm_up_hour in", values, "warmUpHour");
            return (Criteria) this;
        }

        public Criteria andWarmUpHourNotIn(List<Integer> values) {
            addCriterion("warm_up_hour not in", values, "warmUpHour");
            return (Criteria) this;
        }

        public Criteria andWarmUpHourBetween(Integer value1, Integer value2) {
            addCriterion("warm_up_hour between", value1, value2, "warmUpHour");
            return (Criteria) this;
        }

        public Criteria andWarmUpHourNotBetween(Integer value1, Integer value2) {
            addCriterion("warm_up_hour not between", value1, value2, "warmUpHour");
            return (Criteria) this;
        }

        public Criteria andGroupbuyTimeLimitIsNull() {
            addCriterion("groupbuy_time_limit is null");
            return (Criteria) this;
        }

        public Criteria andGroupbuyTimeLimitIsNotNull() {
            addCriterion("groupbuy_time_limit is not null");
            return (Criteria) this;
        }

        public Criteria andGroupbuyTimeLimitEqualTo(Integer value) {
            addCriterion("groupbuy_time_limit =", value, "groupbuyTimeLimit");
            return (Criteria) this;
        }

        public Criteria andGroupbuyTimeLimitNotEqualTo(Integer value) {
            addCriterion("groupbuy_time_limit <>", value, "groupbuyTimeLimit");
            return (Criteria) this;
        }

        public Criteria andGroupbuyTimeLimitGreaterThan(Integer value) {
            addCriterion("groupbuy_time_limit >", value, "groupbuyTimeLimit");
            return (Criteria) this;
        }

        public Criteria andGroupbuyTimeLimitGreaterThanOrEqualTo(Integer value) {
            addCriterion("groupbuy_time_limit >=", value, "groupbuyTimeLimit");
            return (Criteria) this;
        }

        public Criteria andGroupbuyTimeLimitLessThan(Integer value) {
            addCriterion("groupbuy_time_limit <", value, "groupbuyTimeLimit");
            return (Criteria) this;
        }

        public Criteria andGroupbuyTimeLimitLessThanOrEqualTo(Integer value) {
            addCriterion("groupbuy_time_limit <=", value, "groupbuyTimeLimit");
            return (Criteria) this;
        }

        public Criteria andGroupbuyTimeLimitIn(List<Integer> values) {
            addCriterion("groupbuy_time_limit in", values, "groupbuyTimeLimit");
            return (Criteria) this;
        }

        public Criteria andGroupbuyTimeLimitNotIn(List<Integer> values) {
            addCriterion("groupbuy_time_limit not in", values, "groupbuyTimeLimit");
            return (Criteria) this;
        }

        public Criteria andGroupbuyTimeLimitBetween(Integer value1, Integer value2) {
            addCriterion("groupbuy_time_limit between", value1, value2, "groupbuyTimeLimit");
            return (Criteria) this;
        }

        public Criteria andGroupbuyTimeLimitNotBetween(Integer value1, Integer value2) {
            addCriterion("groupbuy_time_limit not between", value1, value2, "groupbuyTimeLimit");
            return (Criteria) this;
        }

        public Criteria andAllowPointIsNull() {
            addCriterion("allow_point is null");
            return (Criteria) this;
        }

        public Criteria andAllowPointIsNotNull() {
            addCriterion("allow_point is not null");
            return (Criteria) this;
        }

        public Criteria andAllowPointEqualTo(Integer value) {
            addCriterion("allow_point =", value, "allowPoint");
            return (Criteria) this;
        }

        public Criteria andAllowPointNotEqualTo(Integer value) {
            addCriterion("allow_point <>", value, "allowPoint");
            return (Criteria) this;
        }

        public Criteria andAllowPointGreaterThan(Integer value) {
            addCriterion("allow_point >", value, "allowPoint");
            return (Criteria) this;
        }

        public Criteria andAllowPointGreaterThanOrEqualTo(Integer value) {
            addCriterion("allow_point >=", value, "allowPoint");
            return (Criteria) this;
        }

        public Criteria andAllowPointLessThan(Integer value) {
            addCriterion("allow_point <", value, "allowPoint");
            return (Criteria) this;
        }

        public Criteria andAllowPointLessThanOrEqualTo(Integer value) {
            addCriterion("allow_point <=", value, "allowPoint");
            return (Criteria) this;
        }

        public Criteria andAllowPointIn(List<Integer> values) {
            addCriterion("allow_point in", values, "allowPoint");
            return (Criteria) this;
        }

        public Criteria andAllowPointNotIn(List<Integer> values) {
            addCriterion("allow_point not in", values, "allowPoint");
            return (Criteria) this;
        }

        public Criteria andAllowPointBetween(Integer value1, Integer value2) {
            addCriterion("allow_point between", value1, value2, "allowPoint");
            return (Criteria) this;
        }

        public Criteria andAllowPointNotBetween(Integer value1, Integer value2) {
            addCriterion("allow_point not between", value1, value2, "allowPoint");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusIsNull() {
            addCriterion("delete_status is null");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusIsNotNull() {
            addCriterion("delete_status is not null");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusEqualTo(Integer value) {
            addCriterion("delete_status =", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusNotEqualTo(Integer value) {
            addCriterion("delete_status <>", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusGreaterThan(Integer value) {
            addCriterion("delete_status >", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("delete_status >=", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusLessThan(Integer value) {
            addCriterion("delete_status <", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusLessThanOrEqualTo(Integer value) {
            addCriterion("delete_status <=", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusIn(List<Integer> values) {
            addCriterion("delete_status in", values, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusNotIn(List<Integer> values) {
            addCriterion("delete_status not in", values, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusBetween(Integer value1, Integer value2) {
            addCriterion("delete_status between", value1, value2, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("delete_status not between", value1, value2, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNull() {
            addCriterion("create_date is null");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNotNull() {
            addCriterion("create_date is not null");
            return (Criteria) this;
        }

        public Criteria andCreateDateEqualTo(Date value) {
            addCriterion("create_date =", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotEqualTo(Date value) {
            addCriterion("create_date <>", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThan(Date value) {
            addCriterion("create_date >", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThanOrEqualTo(Date value) {
            addCriterion("create_date >=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThan(Date value) {
            addCriterion("create_date <", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThanOrEqualTo(Date value) {
            addCriterion("create_date <=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateIn(List<Date> values) {
            addCriterion("create_date in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotIn(List<Date> values) {
            addCriterion("create_date not in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateBetween(Date value1, Date value2) {
            addCriterion("create_date between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotBetween(Date value1, Date value2) {
            addCriterion("create_date not between", value1, value2, "createDate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}